package com.shop.dao.user;

import com.shop.pajo.ShoppingCart;
import com.shop.pajo.User;

import java.sql.Connection;
import java.sql.SQLException;

public interface UserDao {

    User getUserById(Connection connection, int id) throws SQLException;

    User getUserByName(Connection connection, String name) throws SQLException;

    User getUserByEmail(Connection connection, String email) throws SQLException;

    int add(Connection connection, User user) throws SQLException;


}
